﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace Array_List
{
    public class MyComparer : IComparer
    {

       #region IComparer Members

        public int  Compare(object x, object y)
        {
            string a = x as string;
            string b = y as string;

            a = a.Substring(1);
            b = b.Substring(1);

            return a.CompareTo(b);
        }

        #endregion
    }
}
